package bamin.com.kepiao.models;

import java.io.Serializable;

/**
 * Created by Administrator on 2016/2/4.
 */
public class User implements Serializable{

    /**
     * success : true
     * message : 登陆成功
     * contains : {"id":4,"idCard":null,"cardStatus":null,"realName":null,"bankCardStatus":null,"bankCard":null,"phone":"15871105320","address":null,"note":null,"name":"15871105320","flag":null,"image":"http://bmcx.oss-cn-shanghai.aliyuncs.com/account/15871105320.jpeg","idCardImage":null,"drivingLicenseImage":null,"idCardInvalidDate":null,"drivingLicenseInvalidDate":null,"memberId":2,"memberName":"一星会员","login_id":"23b00885-4934-4a10-aff7-376656500fb4","sex":null,"idCardImage_back":null,"drivingLicenseImage_back":null}
     * memberModel : {"id":2,"name":"会员二","discount":0.96,"status":0,"level":2,"ceiling":10000}
     */

    private boolean success;
    private String message;
    /**
     * id : 4
     * idCard : null
     * cardStatus : null
     * realName : null
     * bankCardStatus : null
     * bankCard : null
     * phone : 15871105320
     * address : null
     * note : null
     * name : 15871105320
     * flag : null
     * image : http://bmcx.oss-cn-shanghai.aliyuncs.com/account/15871105320.jpeg
     * idCardImage : null
     * drivingLicenseImage : null
     * idCardInvalidDate : null
     * drivingLicenseInvalidDate : null
     * memberId : 2
     * memberName : 一星会员
     * login_id : 23b00885-4934-4a10-aff7-376656500fb4
     * sex : null
     * idCardImage_back : null
     * drivingLicenseImage_back : null
     */

    private ContainsEntity contains;
    /**
     * id : 2
     * name : 会员二
     * discount : 0.96
     * status : 0
     * level : 2
     * ceiling : 10000.0
     */

    private MemberModelEntity memberModel;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public ContainsEntity getContains() {
        return contains;
    }

    public void setContains(ContainsEntity contains) {
        this.contains = contains;
    }

    public MemberModelEntity getMemberModel() {
        return memberModel;
    }

    public void setMemberModel(MemberModelEntity memberModel) {
        this.memberModel = memberModel;
    }

    public static class ContainsEntity implements Serializable{
        private int id;
        private String idCard;
        private String cardStatus;
        private String realName;
        private String bankCardStatus;
        private String bankCard;
        private String phone;
        private String address;
        private String note;
        private String name;
        private String flag;
        private String image;
        private String idCardImage;
        private String drivingLicenseImage;
        private String idCardInvalidDate;
        private String drivingLicenseInvalidDate;
        private int memberId;
        private String memberName;
        private String login_id;
        private String sex;
        private String idCardImage_back;
        private String drivingLicenseImage_back;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getIdCard() {
            return idCard;
        }

        public void setIdCard(String idCard) {
            this.idCard = idCard;
        }

        public String getCardStatus() {
            return cardStatus;
        }

        public void setCardStatus(String cardStatus) {
            this.cardStatus = cardStatus;
        }

        public String getRealName() {
            return realName;
        }

        public void setRealName(String realName) {
            this.realName = realName;
        }

        public String getBankCardStatus() {
            return bankCardStatus;
        }

        public void setBankCardStatus(String bankCardStatus) {
            this.bankCardStatus = bankCardStatus;
        }

        public String getBankCard() {
            return bankCard;
        }

        public void setBankCard(String bankCard) {
            this.bankCard = bankCard;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getNote() {
            return note;
        }

        public void setNote(String note) {
            this.note = note;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getFlag() {
            return flag;
        }

        public void setFlag(String flag) {
            this.flag = flag;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getIdCardImage() {
            return idCardImage;
        }

        public void setIdCardImage(String idCardImage) {
            this.idCardImage = idCardImage;
        }

        public String getDrivingLicenseImage() {
            return drivingLicenseImage;
        }

        public void setDrivingLicenseImage(String drivingLicenseImage) {
            this.drivingLicenseImage = drivingLicenseImage;
        }

        public String getIdCardInvalidDate() {
            return idCardInvalidDate;
        }

        public void setIdCardInvalidDate(String idCardInvalidDate) {
            this.idCardInvalidDate = idCardInvalidDate;
        }

        public String getDrivingLicenseInvalidDate() {
            return drivingLicenseInvalidDate;
        }

        public void setDrivingLicenseInvalidDate(String drivingLicenseInvalidDate) {
            this.drivingLicenseInvalidDate = drivingLicenseInvalidDate;
        }

        public int getMemberId() {
            return memberId;
        }

        public void setMemberId(int memberId) {
            this.memberId = memberId;
        }

        public String getMemberName() {
            return memberName;
        }

        public void setMemberName(String memberName) {
            this.memberName = memberName;
        }

        public String getLogin_id() {
            return login_id;
        }

        public void setLogin_id(String login_id) {
            this.login_id = login_id;
        }

        public String getSex() {
            return sex;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public String getIdCardImage_back() {
            return idCardImage_back;
        }

        public void setIdCardImage_back(String idCardImage_back) {
            this.idCardImage_back = idCardImage_back;
        }

        public String getDrivingLicenseImage_back() {
            return drivingLicenseImage_back;
        }

        public void setDrivingLicenseImage_back(String drivingLicenseImage_back) {
            this.drivingLicenseImage_back = drivingLicenseImage_back;
        }
    }

    public static class MemberModelEntity implements Serializable{
        private int id;
        private String name;
        private double discount;
        private int status;
        private int level;
        private double ceiling;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public double getDiscount() {
            return discount;
        }

        public void setDiscount(double discount) {
            this.discount = discount;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public int getLevel() {
            return level;
        }

        public void setLevel(int level) {
            this.level = level;
        }

        public double getCeiling() {
            return ceiling;
        }

        public void setCeiling(double ceiling) {
            this.ceiling = ceiling;
        }
    }
}
